SearchIndex
POST {{baseURL}}api/v1/search/index
Description
Create a search index
Request
-
Headers:
Content-Type: application/jsonAccept: */*
-
URL:
- Raw URL:
{{baseURL}}/api/v1/search/index - Host:
{{baseUrl}} - Path: /search/index
- Raw URL:
-
Body:
{
"serviceId": "string",
"tenantId": "string",
"templateName": "string",
"data": [
"string"
]
}
Responses
-
200: Success.
-
400: Bad Request. The request is not valid.
-
404: Not Found. The requested resource was not found.
Headers
| Content-Type | Value |
|---|---|
| Accept-Language |
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Headers
| Content-Type | Value |
|---|---|
| Accept | text/plain |
Sample Request
{
"serviceId": "9a7ade80-98d5-11ee-b9d1-0242ac120005",
"templateName":"search-003",
"tenantId": "64db686b3f9c4bc18d5c6507",
"data": [
{
"id": "9a7ade80-98d5-11ee-b9d1-0242ac120002",
"sku": "prod-001",
"productname": "Milk",
"cost": 2000,
"category": "dairy",
"manufacturer": "some_random_string"
}
]
}
LANGUAGE
CURL REQUEST
curl --request POST \
--url /search-management \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!